import request from '@/utils/request'

// 查询小屋管理列表
export function listLovehouseManage(query) {
  return request({
    url: '/manage/lovehouseManage/list',
    method: 'get',
    params: query
  })
}

// 查询小屋管理详细
export function getLovehouseManage(id) {
  return request({
    url: '/manage/lovehouseManage/' + id,
    method: 'get'
  })
}

// 新增小屋管理
export function addLovehouseManage(data) {
  return request({
    url: '/manage/lovehouseManage',
    method: 'post',
    data: data
  })
}

// 修改小屋管理
export function updateLovehouseManage(data) {
  return request({
    url: '/manage/lovehouseManage',
    method: 'put',
    data: data
  })
}

// 删除小屋管理
export function delLovehouseManage(id) {
  return request({
    url: '/manage/lovehouseManage/' + id,
    method: 'delete'
  })
}
